Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sepolia prep: add batch + rollup interval CLI options #1530

Merged
merged 3 commits into from
Sep 18, 2023

Conversation

BedrockSquirrel
Copy link
Collaborator

Why this change is needed

We want to configure slower rollup rate for sepolia-testnet

What changes were made as part of this PR

Wire through CLI options for the docker node starter to set batch/rollup intervals.

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

Comment on lines 14 to 15
batchInterval, _ := time.ParseDuration(cliConfig.batchInterval)
rollupInterval, _ := time.ParseDuration(cliConfig.rollupInterval)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the node validated the time parsing and this mechanism only took strings and simple types ?

@@ -100,6 +105,16 @@ func ParseConfigCLI() *NodeConfigCLI {
cfg.isDebugNamespaceEnabled = *isDebugNamespaceEnabled
cfg.logLevel = *logLevel
cfg.isInboundP2PDisabled = *isInboundP2PDisabled
cfg.batchInterval = *batchInterval
if _, err := time.ParseDuration(cfg.batchInterval); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the node validated the time parsing and this mechanism only took strings and simple types ?

@BedrockSquirrel BedrockSquirrel merged commit e9a8d01 into main Sep 18, 2023
@BedrockSquirrel BedrockSquirrel deleted the matt/make-rollup-rate-configurable branch September 18, 2023 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants